<?php 
/*
 module:		部门管理控制器
 create_time:	2023-10-31 23:42:03
 author:		your name
 contact:		your email address
*/

namespace app\admin\validate\Admin;
use think\validate;

class Dept extends validate {


	protected $rule = [
		'name'=>['require','unique:admin_dept'],
	];

	protected $message = [
		'name.require'=>'名称不能为空',
		'name.unique'=>'名称已经存在',
	];

	protected $scene  = [
		'add'=>['name'],
		'update'=>['name'],
	];


	

}

